package com.njupt.simulation.utils;

import com.njupt.simulation.entity.AdjacentBand;

//public class IsAdjacentInterference(adjacentBandSegmentList) {
//
//    double minFrequency = Double.MAX_VALUE;
//    double maxFrequency = Double.MIN_VALUE;
//
//    // 遍历segment列表
//    for (
//    AdjacentBand segment : adjacentBandSegmentList) {
//        // 获取当前segment的频率最小值和最大值
//        double segmentMinFrequency = segment.getStartFrequency();
//        double segmentMaxFrequency = segment.getEndFrequency();
//
//        // 更新最小频率和最大频率
//        if (segmentMinFrequency < minFrequency) {
//            minFrequency = segmentMinFrequency;
//        }
//        if (segmentMaxFrequency > maxFrequency) {
//            maxFrequency = segmentMaxFrequency;
//        }
//    }
//
//
//}
